package com.yun2.bms.service;

import com.yun2.bms.dao.IUserDao;
import com.yun2.bms.model.User;

import java.util.List;

/**
 * author: youli
 * qq: 27855162@qq.com
 * date: 2020/6/4
 */

public interface IUserService {
    List<User> getAll();

    int delete(List<User> list);

    int delete(String ids);

    boolean isLoginNameUnique(String loginName);

    boolean isLoginNameUnique(Integer id, String loginName);

    int add(User user);

    int edit(User user);

    List<User> getAllByUserInfo(String userInfo);

    User getUser4Lend(Integer id);

    User get(int userId);
}
